class Region {
  Region({
    this.id,
    this.name,
    this.title,
    this.flagUrl,
  });

  factory Region.fromJson(Map<String, dynamic> json) {
    return Region(
      id: json['id']?.toString(),
      name: json['name']?.toString(),
      title: json['title']?.toString(),
      flagUrl: json['flagUrl']?.toString(),
    );
  }

  String? id;
  String? name;
  String? title;
  String? flagUrl;

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'name': name,
      'title': title,
      'flagUrl': flagUrl,
    };
  }

  Region clone() {
    return Region(
      id: id,
      name: name,
      title: title,
      flagUrl: flagUrl,
    );
  }
}
